package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.EnrollStageTime;
import com.xmy.cultivate.mapper.EnrollStageTimeMapper;
import com.xmy.cultivate.service.IEnrollStageTimeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

/**
 * <p>
 * 阶段时间表 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-09-04
 */
@Service
public class EnrollStageTimeServiceImpl extends ServiceImpl<EnrollStageTimeMapper, EnrollStageTime> implements IEnrollStageTimeService {
    @Autowired
    EnrollStageTimeMapper enrollStageTimeMapper;

    @Override
    public Integer countByDate(LocalDate startDate, LocalDate endDate) {
        return enrollStageTimeMapper.countByDate(startDate,endDate);
    }
}
